﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Table_pet.background.Classes
{
    internal class DBcontext : DbContext
    {
        public DBcontext(DbContextOptions<DBcontext> options)
        : base(options)
        {
            Database.EnsureCreated(); //自动建库建表
        }

        public DbSet<Memorandum> Memorandum { get; set; }
        public DbSet<ClockModel> Clock { get; set; }
    }
}
